package cn.edu.mju.dilidili.auth.controller;

import cn.edu.mju.dilidili.auth.serviceFeign.DynamicServiceFeign;
import cn.edu.mju.dilidili.auth.serviceFeign.ReplyServiceFeign;
import cn.edu.mju.dilidili.common.utils.Result;
import com.alibaba.fastjson.JSONObject;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 作用描述
 *
 * @author linzsh
 * @date 2022/9/24 1:56
 */
@RestController
@RequiredArgsConstructor
public class Hello {
    final DynamicServiceFeign dynamicServiceFeign;
    final ReplyServiceFeign replyServiceFeign;

    @RequestMapping("/hello")
    String hello() {
        return "hello world! I am auth application.";
    }

    @RequestMapping("/mysql")
    String mysql() {
        return dynamicServiceFeign.mysqlTest();
    }

    @RequestMapping("/redis")
    String redis() {
        return replyServiceFeign.redisTest();
    }
}
